package com.dong.jdk8.stream;

/**
 * Created by jianyang206881 on 2017/9/26.
 */
public class Streams {
    public enum Status {
        OPEN, CLOSED
    };

    public static final class Task {
        private final Status status;
        private final Integer points;

        public Task(final Status status, final Integer points) {
            this.status = status;
            this.points = points;
        }

        public Integer getPoints() {
            return points;
        }

        public Status getStatus() {
            return status;
        }

        @Override
        public String toString() {
            return String.format( "[%s, %d]", status, points );
        }
    }
}
